package com.harmontronics.app.pedestal.bridge.model;

import com.google.gson.GsonBuilder;
import com.google.gson.annotations.SerializedName;

public class BridgeResult {
    public static final int CODE_SUCCESS = 0;
    public static final int CODE_FAIL = -1;

    @SerializedName("code")
    public int code = CODE_SUCCESS;
    @SerializedName("message")
    public String message = "";
    @SerializedName("error")
    public String error = "";
    @SerializedName("data")
    public Object data;

    public String toJson() {
        return new GsonBuilder().create().toJson(this);
    }
}
